#include <iostream>

int main()
{
    std::cout << "学号：3170608043，姓名：石英钰\n";
    // 100 个分数
    int scores[] = {
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
        89,
        87,
        98,
        77,
        83,
        85,
        93,
        73,
        81,
        93,
    };
    int i = 0, scoresNum = sizeof(scores) / sizeof(int), minScore = scores[0], maxScore = scores[0], totalScore;
    for (; i < scoresNum; i++)
    {
        if (maxScore < scores[i])
            maxScore = scores[i];
        if (minScore > scores[i])
            minScore = scores[i];
        totalScore += scores[i];
    }
    float averageScore = totalScore / scoresNum;
    printf("The number of scores is %d, the best score is %d, the lowest score is %d, the average score is %f\n", scoresNum, maxScore, minScore, averageScore);
    return 0;
}
